package com.caineng.zhaobiao.zbapi.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Document(collection = "cai_base_user")
@Data
public class CaiBaseUser implements Serializable {

    /**
     * 删除状态
     */
    public static final Integer IS_DEL_YES = 2;
    public static final Integer IS_DEL_NO = 0;

    @Id
    private String _id ;

    /**
     * 10 已实名认证
     */
    @ApiModelProperty(value = "10 已实名认证")
    private String approve;


    /**
     * 人员主键
     */
    @Indexed
    @ApiModelProperty(value = "人员主键")
    private String id;

    /**
     * 积分
     */
    @ApiModelProperty(value = "积分")
    private String integral;

    /**
     * 密码
     */
    @Indexed
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 账号
     */
    @Indexed
    @ApiModelProperty(value = "账号")
    private String phone;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String showName;


    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String headImg;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证")
    private String idcard;

    /**
     * 邀请码
     */
    @ApiModelProperty(value = "邀请码")
    private String invite;


    /**
     * 实名姓名
     */
    @ApiModelProperty(value = "实名姓名")
    private String idname;

    /**
     * 微信统一认证id
     */
    @Indexed
    @ApiModelProperty(value = "微信统一认证id")
    private String unionid;

    /**
     * 微信openid
     */
    @ApiModelProperty(value = "微信openid")
    private String openid;

    /**
     * 微信openid
     */
    @ApiModelProperty(value = "IOS登录时的id")
    private String iosId;

    /**
     * 加入时间
     */
    private String createTime  ;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "地区")
    private String address;


    @ApiModelProperty(value = "vip结束时间")
    private Long vipEndTime ;

    @ApiModelProperty(value = "是否有效 2 无效  0 或者其他 有效")
    private Integer delFlag = 0 ;


    private static final long serialVersionUID = 1L;
}
